class CreateOrderMades < ActiveRecord::Migration
  def self.up
    create_table :order_mades do |t|
      t.string :order_made_no
      t.integer :factory_id
      t.date :order_made_on
      t.string :status, :default => 'being_edited'     
      t.decimal :order_made_price,
        :precision => 8, :scale => 2
      t.integer :creator_id
      t.text :remark      
      t.timestamps
    end
  end

  def self.down
    drop_table :order_mades
  end
end
